define(function(require, exports, module) {
	
	var demoTpl=require('resources/template/common/demo_tpl.html');
	require('avalon2');	
	
	var Demo=function($container,config,data){
		this.getUrl=Common.getUrl.bind(this);
		this.config=$.extend({},Demo.DEFAULT,config);
		this.data=data;
		this.$container=$container;
		this.$div=$(demoTpl).prependTo(this.$container);
		this.init();
	};
	
	Demo.prototype={
		init:function(){
			
		},
		destroy:function(){
			this.$div.remove();
			this.$vmId&&delete avalon.vmodels[this.$vmId];
		}
	}
	
	Demo.DEFAULT={
			
	};
	
	return Demo;
});